using System;
using L=Science.Physics.GeneralPhysics;

namespace Serway.Chapter06
{
	/// <summary>
	/// Example04: What is the Maximum Speed of the Car?
	/// A 1500 kg car moving on a flat, horizontal road 
	/// negotiates a curve, as shown in Figure 6.5. If the radius of
	/// curve is 35.0 m and the coefficient of static friction between 
	/// the tires and dry pavement is 0.500, find the maximum 
	/// speed the car can have and still make the turn successfully.
	/// v_max = 13.1 m/s
	/// </summary>
	public class Example04
	{
		public Example04()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
			// f = mu*mg = mv^2/r
			double mu = 0.5;
			double r = 35.0;
			L.Velocity vmax = new L.Velocity();
			vmax.X = Math.Sqrt(mu*L.Constant.AccelerationOfGravity*r);
			result += Convert.ToString(vmax.mPERs);
		}
	}
}
